import request from '@/utils/request'
// 获取门店入库汇总表列表数据
// store_id:104
// start_time:2019-11-01
// end_time:2019-11-30
export function getSummary(data) {
  return request({
      url: '/Stock_store_inventory/store_storage_summary',
      method: 'post',
      data: data
  })
}

// 采购入库明细表
// store_id:104
// start_time:2019-11-01
// end_time:2019-11-30
// type 1供应商采购入库，2中央仓采购入库，3其他仓调拨入库
export function getPurchaseList(data,page) {
  return request({
      url: '/Stock_store_inventory/store_storage_info_list/'+(page?page:1),
      method: 'post',
      data: data
  })
}
// 采购入库明细 分页数
export function getPurchaseListPage(data) {
  return request({
      url: '/Stock_store_inventory/store_storage_info_list_page',
      method: 'post',
      data: data
  })
}

// 采购入库明细 统计结果
export function getPurchaseSummary(data) {
  return request({
      url: '/Stock_store_inventory/store_storage_total',
      method: 'post',
      data: data
  })
}

// 采购入库，收货单明细
// revice_id:49   收货单id
// type 1供应商采购入库，2中央仓采购入库
export function getReceiveList(data,page) {
  return request({
      url: '/Stock_store_inventory/store_storage_gift_list/'+(page?page:1),
      method: 'post',
      data: data
  })
}
// 采购入库，收货单明细 分页数
// revice_id:49   收货单id
// type 1供应商采购入库，2中央仓采购入库
export function getReceiveListPage(data) {
  return request({
      url: '/Stock_store_inventory/store_storage_gift_list_page',
      method: 'post',
      data: data
  })
}
// 采购入库，收货单明细 统计结果
export function getReceiveSummary(data) {
  return request({
      url: '/Stock_store_inventory/store_storage_gift_total',
      method: 'post',
      data: data
  })
}

// 采购入库，收货单批次明细
// batch_id:49   收货批次id
// type 1供应商采购入库，2中央仓采购入库
export function getReceiveBatchList(data,page) {
  return request({
      url: '/Stock_store_inventory/batch_gift_list/'+(page?page:1),
      method: 'post',
      data: data
  })
}
// 采购入库，收货单批次明细 分页数
// batch_id:49   收货批次id
// type 1供应商采购入库，2中央仓采购入库
export function getReceiveBatchListPage(data) {
  return request({
      url: '/Stock_store_inventory/batch_gift_list_page',
      method: 'post',
      data: data
  })
}
// 采购入库，收货单批次明细 统计结果
export function getReceiveBatchSummary(data) {
  return request({
      url: '/Stock_store_inventory/store_storage_batch_total',
      method: 'post',
      data: data
  })
}
